require("../@babel/runtime/helpers/Arrayincludes"), (global.webpackJsonp = global.webpackJsonp || []).push([ [ "components/link-button" ], {
    4268: function(e, t, n) {
        n.r(t);
        var r = n("e4a3"), o = n("84a4");
        for (var i in o) "default" !== i && function(e) {
            n.d(t, e, function() {
                return o[e];
            });
        }(i);
        n("7c9c");
        var a = n("f0c5"), c = Object(a.a)(o.default, r.b, r.c, !1, null, "76f66f3e", null, !1, r.a, void 0);
        t.default = c.exports;
    },
    "7c9c": function(e, t, n) {
        var r = n("9a12");
        n.n(r).a;
    },
    "84a4": function(e, t, n) {
        n.r(t);
        var r = n("e5e3"), o = n.n(r);
        for (var i in r) "default" !== i && function(e) {
            n.d(t, e, function() {
                return r[e];
            });
        }(i);
        t.default = o.a;
    },
    "9a12": function(e, t, n) {},
    e4a3: function(e, t, n) {
        n.d(t, "b", function() {
            return r;
        }), n.d(t, "c", function() {
            return o;
        }), n.d(t, "a", function() {});
        var r = function() {
            this.$createElement;
            this._self._c;
        }, o = [];
    },
    e5e3: function(e, t, n) {
        (function(e) {
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0;
            var r = n("26cb"), o = n("8434"), i = n("7960"), a = n("99e5"), c = (s(n("03b8")), 
            n("a71e")), u = (n("db8f"), n("4771")), l = s(n("801c"));
            function s(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            function f(e, t) {
                var n = Object.keys(e);
                if (Object.getOwnPropertySymbols) {
                    var r = Object.getOwnPropertySymbols(e);
                    t && (r = r.filter(function(t) {
                        return Object.getOwnPropertyDescriptor(e, t).enumerable;
                    })), n.push.apply(n, r);
                }
                return n;
            }
            function p(e, t, n) {
                return t in e ? Object.defineProperty(e, t, {
                    value: n,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : e[t] = n, e;
            }
            var d = {
                data: function() {
                    return {};
                },
                props: {
                    url: null,
                    mStyle: null,
                    hover: {
                        default: "none"
                    },
                    disabled: {
                        type: Boolean,
                        default: !1
                    },
                    openType: {
                        type: String,
                        default: ""
                    },
                    navType: {
                        type: Number,
                        default: 1
                    }
                },
                computed: function(e) {
                    for (var t = 1; t < arguments.length; t++) {
                        var n = null != arguments[t] ? arguments[t] : {};
                        t % 2 ? f(Object(n), !0).forEach(function(t) {
                            p(e, t, n[t]);
                        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : f(Object(n)).forEach(function(t) {
                            Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
                        });
                    }
                    return e;
                }({
                    Style: function() {
                        var e = this.mStyle, t = "";
                        if ("string" == typeof e) return e;
                        for (var n in e) t += n + ":" + e[n] + ";";
                        return t;
                    }
                }, (0, r.mapGetters)([ "mainColor", "user", "configs" ])),
                mounted: function() {},
                methods: {
                    toPage: function(t) {
                        var n = this.url;
                        if (n) {
                            if ("login" == n || "cancel" == n) return this.$emit("onTap", n), !1;
                            if (-1 != n.indexOf("phone:")) return e.makePhoneCall({
                                phoneNumber: n.split(":")[1]
                            }), !1;
                            if (-1 != n.indexOf("web^")) return (0, o.route)({
                                url: "/pages/web/index",
                                type: 1,
                                data: {
                                    url: encodeURIComponent(n.split("^")[1])
                                }
                            }), !1;
                            if (-1 != n.indexOf("xcxTo^")) {
                                var r = r = JSON.parse(n.split("^")[1]);
                                return e.navigateToMiniProgram({
                                    appId: r.wxappId,
                                    path: r.wxappPath,
                                    extraData: {
                                        data: ""
                                    },
                                    success: function(e) {},
                                    fail: function(e) {
                                        console.log(e);
                                    }
                                }), !1;
                            }
                            if ("clearCache" == n) try {
                                e.showModal({
                                    title: "提示",
                                    content: "请确认是否清除缓存?",
                                    success: function(t) {
                                        t.confirm ? (e.clearStorageSync(), l.default.dispatch("config/clearData").then(function(e) {
                                            (0, o.route)({
                                                url: "/diy/diy/index",
                                                type: 3,
                                                data: {}
                                            });
                                        })) : t.cancel;
                                    }
                                });
                            } catch (e) {} else if (n.includes("wxappLive")) {
                                var i = n.split(":")[1], a = encodeURIComponent(JSON.stringify({
                                    path: "diy/diy/index",
                                    pid: this.user.id,
                                    typelive: "wxlive"
                                }));
                                e.navigateTo({
                                    url: "plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=".concat(i, "&custom_params=").concat(a)
                                });
                            } else if (n.includes("mini_shop_live")) {
                                var c = n.split("mini_shop_live:")[1];
                                wx.openChannelsLive({
                                    finderUserName: c,
                                    fail: function(t) {
                                        if (-1 != t.errMsg.indexOf("cancel")) return !1;
                                        e.showModal({
                                            confirmText: "取消",
                                            cancelText: "复制",
                                            showCancel: !0,
                                            title: "错误",
                                            content: t.errMsg,
                                            success: function(n) {
                                                n.confirm || e.setClipboardData({
                                                    data: t.errMsg
                                                });
                                            }
                                        });
                                    }
                                });
                            }
                            var u = {
                                url: n,
                                type: this.navType
                            };
                            this.isJudge(n, 1, u);
                        }
                    },
                    getPhoneNumber: function(e) {},
                    getUserInfo: function(e) {},
                    isJudge: function(e, t, n) {
                        var r = this;
                        (0, a.pageUrls)(e) ? (0, u.getStorageSync)("userInfo").then(function(e) {
                            var a = JSON.parse(e.data);
                            switch (t) {
                              case 1:
                                "false" == e.data || a.hasOwnProperty("id") && (0, c.isEmpty)(a.id) && 1 == r.configs.is_phone_platform || (0, 
                                c.isEmpty)(a.phone) && !(0, c.isEmpty)(a.id) && 1 == r.configs.is_phone_platform ? (0, 
                                i.verifyLogin)(2) : (0, o.route)(n);
                                break;

                              case 2:
                                "false" == e.data || (0, c.isEmpty)(a.id) ? (0, i.h5Judge)(2) : (0, o.route)(n);
                            }
                        }, function(e) {
                            switch (t) {
                              case 1:
                                (0, i.verifyLogin)(2);
                                break;

                              case 2:
                                (0, i.h5Judge)(2);
                            }
                        }) : (0, o.route)(n);
                    }
                }
            };
            t.default = d;
        }).call(this, n("543d").default);
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "components/link-button-create-component", {
    "components/link-button-create-component": function(e, t, n) {
        n("543d").createComponent(n("4268"));
    }
}, [ [ "components/link-button-create-component" ] ] ]);